package com.skyaims.biz.factory.biz;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;

/**
 * Created by wujianing on 14-3-18.
 */
public class BizThreadManager {

    private static Executor bizPool = Executors.newFixedThreadPool(50, new ThreadFactory() {

        @Override
        public Thread newThread(Runnable r) {
            // AbsBusiness biz = new AbsBusiness();
            //biz.setBusiness(r);
//            Thread t = new Thread(biz);
            return null;
        }

    });

    public static void dispatchProcessor(AbsBusiness business) {
        bizPool.execute(business);
    }

}
